package cc.git.liuyan.customeraiagent.core.provider.giteeai.bigmodel.api.reqandres;

import lombok.Data;

import java.util.List;

@Data
public class GiteeAiBigModelApiRequest {
    private String model;
    private String service;
    private List<MessageItem> messages;
    //是否是流式输出
    private Boolean stream = false;
    private Integer max_tokens = 0;

    public void setModel(String model) {
        this.model = model;
        this.service = model;
    }

    public void setService(String service) {
        this.service = service;
        this.model = service;
    }

    @Data
    public static class MessageItem {
        private String content;
        //system 通常由开发者在对话开始时设置，用于定义助手的行为或对话的风格
        //user 用户输入的内容
        //assistant 由模型生成的回复
        //tool 模型调用的工具
        private String role;

        public MessageItem() {
        }

        public MessageItem(String role, String content) {
            this.role = role;
            this.content = content;
        }
    }
}
